<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../../css/skin.css">
<link rel="stylesheet" type="text/css"
	href="../../css/easy-ui-themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="../../css/easy-ui-themes/icon.css">
<script type="text/javascript" src="../../js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../../js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>

<script type="text/javascript">
	function createAccount() {
		AjaxSubmitPost("../AdminBatchAdd.do",

		"ajaxImg",

		"批量添加" + $('#roleTypeSelect').find('option:selected').text(),

		"type=" + $('#roleTypeSelect').val() + "&manyCustomerId="
				+ $("#manyStuId").val(),

		function(msg) {
			showdialog(msg, "dialogid");
			$("#manyStuId").val();
		},

		function(msg) {
			showdialog(msg, "dialogid");
			$("#manyStuId").val(); 
		}

		);
	}
</script>

</head>
<body class="body">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" valign="top" background="../../images/mail_leftbg.gif"><img
				src="../../images/left-top-right.gif" width="17" height="29" /></td>
			<td valign="top" background="../../images/content-bg.gif">
				<table width="100%" height="31" border="0" cellpadding="0"
					cellspacing="0" class="left_topbg" id="table2">
					<tr>
						<td height="31"><div class="titlebt">批量创建..</div></td>
					</tr>
				</table>
			</td>
			<td width="16" valign="top"
				background="../../images/mail_rightbg.gif"><img
				src="../../images/nav-right-bg.gif" width="16" height="29" /></td>
		</tr>

		<tr>
			<td valign="bottom" background="../../images/mail_leftbg.gif"></td>
			<td valign="top" style="height:400px;background-color: white;">
				<!-- 这个是主要div -->
				<div style="margin-top:30px">

					<div>
						<br />批量创建学生/教师帐号:<br /> <br />ps1:可以直接从excel里某一字段复制出来直接添加 <br />ps2:若按换行符隔开后的用户信息为空或已存在，会返回详细错误信息，但不影响其他用户的插入
						<br />ps3:用户名不宜超过20个字符否则出错
						<form action="../AdminBatchAdd.do" id=formInit>
							角色类别:<select id="roleTypeSelect" style="width: 170px;">
								<option value="1" selected="selected">学生</option>
								<option value="0">教师</option>

							</select><br />
							<textarea rows="10" cols="40" name="manyStuId" id="manyStuId"
								class="txtId"></textarea>
							<br /> <a href="javascript:void(0)" class="easyui-linkbutton"
								onclick="createAccount();">提交</a> <img
								src="../../images/loading.gif"
								style="display: none; height: 25px; width: 25px;" id="ajaxImg" />
						</form>
					</div>



				</div></td>
			<td valign="bottom" background="../../images/mail_rightbg.gif">
			</td>
		</tr>


		<tr>
			<td valign="bottom"><img src="../../images/buttom_left2.gif"
				width="17" height="17" /></td>
			<td background="../../images/buttom_bgs.gif"><img
				src="../../images/buttom_bgs.gif" width="17" height="17"></td>
			<td valign="bottom"><img src="../../images/buttom_right2.gif"
				width="16" height="17" /></td>
		</tr>

	</table>
	<div id="dialogid" title="提示"></div>
	<div id="win"></div>
</body>
</html>